<?php
include 'Models.php';

DbConnector::Connect();

$id = WebHelper::GetInt("placeID");
$points = WebHelper::PostInt("rating");

$userID = $_SESSION["MEMBER_ID"];
//$_SESSION["MEMBER_ID"] = "RAAAAATED";

if($userID == null)
    die("Error: User should login first.");

$place = new Place($id);
$place->Rate($userID, $points);


?>